﻿using WampSharp.V2;
using WampSharp.V2.Realm;
using WampSharp.V2.Rpc;

namespace WampShare
{
    public interface ICamService
    {
        /// <summary>
        /// Wamp的链接地址
        /// </summary>
        public const string Location = "ws://127.0.0.1:8080/ws";
        public const string RealmStr = "realm1";
        public const string OpenCamTopic = "ICamServices.OpenCam";
        public const string CloseCamTopic = "ICamServices.CloseCam";

        /// <summary>
        /// 尽量使用异步方法
        /// </summary>
        /// <returns></returns>
        [WampProcedure(OpenCamTopic)]
        Task<string> OpenCam();

        [WampProcedure(CloseCamTopic)]
        Task<string> CloseCam();


    }
}
